package com.wutuo.tag.api;

import com.wutuo.tag.api.request.TagRequest;
import com.wutuo.tag.api.response.TagResponse;

import java.util.List;

/**
 * Created by Singer_YDW on 2016/11/9.
 */
public interface TagAPIService {
    
    public void addorUpdate(TagRequest record);

    public void del(Long id);

    public List<TagResponse> list(TagRequest request);

    public List<TagResponse> listByUserId(TagRequest request);

    /**
     * 翻译TAG
     *
     * @param model
     * @param tKey
     * @param skey
     * @return
     */
    public <T> List getTagByTagIds(List<T> model, String tKey, String skey);
}
